import Vue from 'vue'
import VueRouter from 'vue-router'
import Container from '../views/Container.vue'
import adminHome from '@/views/admin/adminHome.vue';
import timeData from '@/views/admin/timeData.vue';
import BussBaseInfo from '@/views/admin/BussBaseInfo.vue';
import queueUseEle from '@/views/admin/queueUseEle.vue';
import LineTable from '@/views/admin/LineTable.vue';
import Login from '@/views/Login.vue';
import failStand from '@/views/admin/failStand.vue';
Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    name:"LoginIn",
    component:Login
  },
  {
    path: '/contain',
    name: 'Container',
    component: Container,
    children:[
      {
        path:"/admin",
        name:"admin-home",
        component:adminHome
      },
      {
        path:"/timeData",
        name:"time-data",
        component:timeData
      },
      {
        path:"/bussBaseInfo",
        name:"buss-base-info",
        component:BussBaseInfo
      },
      {
        path:"/queueUseEle",
        name:"queue-use-ele",
        component:queueUseEle
      },
      {
        path:"/lineTable",
        name:"line-table",
        component:LineTable
      },
      {
        path:"/failStand",
        name:"fail-stand",
        component:failStand
      }
    ]
  }
]

const router = new VueRouter({
  base: '/elesgcc/',
  routes
})

export default router
